<!--
 * @Description: 
 * @Author:  huangshuai
 * @Date: 2023-11-02 14:01:07
 * @LastEditTime: 2023-11-06 10:12:48
 * @LastEditors: huangshuai 
-->

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      html {
        perspective: 800px;
      }
      .cube {
        width: 200px;
        height: 200px;

        margin: 100px auto;
        transform-style: preserve-3d;
        transform: rotateX(45deg) rotateZ(45deg);
        animation: rotate 60s infinite linear;
      }
      .cube > div {
        width: 200px;
        height: 200px;
        opacity: 1;
        position: absolute;
      }

      .cube > div > img {
        width: 200px;
        height: 200px;
        vertical-align: top;
      }
      .box1 {
        transform: rotateY(90deg) translateZ(100px);
      }
      .box2 {
        transform: rotateY(-90deg) translateZ(100px);
      }
      .box3 {
        transform: rotateX(90deg) translateZ(100px);
      }
      .box4 {
        transform: rotateX(-90deg) translateZ(100px);
      }
      .box5 {
        transform: rotateY(180deg) translateZ(100px);
      }
      .box6 {
        transform: rotateY(0deg) translateZ(100px);
      }
      @keyframes rotate {
        form {
          transform: rotateX(0) rotateZ(0);
        }
        to {
          transform: rotateX(1turn) rotateZ(1turn);
        }
      }
    </style>
  </head>
  <body>
    <div class="cube">
      <div class="box1">
        <img src="./img/q.jpg" alt="" />
      </div>
      <div class="box2">
        <img src="./img/w.jpg" alt="" />
      </div>
      <div class="box3">
        <img src="./img/e.jpg" alt="" />
      </div>
      <div class="box4">
        <img src="./img/r.jpg" alt="" />
      </div>
      <div class="box5">
        <img src="./img/t.jpg" alt="" />
      </div>
      <div class="box6">
        <img src="./img/y.jpg" alt="" />
      </div>
    </div>
  </body>
</html>
